package o;

import com.huawei.hmf.orb.exception.ApiNotExistException;
import com.huawei.hmf.orb.exception.GeneralException;
import java.util.HashMap;
import java.util.Map;

public class fge {
    private static Map<String, fge> ˏ = new HashMap();
    private final String ˎ;
    private final fhu ॱ;

    public static synchronized fge ॱ(String str) {
        fge o_fge;
        synchronized (fge.class) {
            o_fge = (fge) ˏ.get(str);
            if (o_fge == null) {
                ffh o_ffh = (ffh) fhm.ˏ(str);
                if (o_ffh == null) {
                    o_fge = null;
                } else {
                    fge o_fge2 = new fge(o_ffh, str);
                    ˏ.put(str, o_fge2);
                    o_fge = o_fge2;
                }
            }
        }
        return o_fge;
    }

    private fge(ffh o_ffh, String str) {
        this.ॱ = o_ffh.ॱॱ();
        this.ˎ = str;
    }

    public ffl ˏ(String str) throws GeneralException {
        fhw ॱ = this.ॱ.ॱ(str);
        if (ॱ == null) {
            return null;
        }
        try {
            return ffl.ˏ().ˎ(this.ˎ).ˎ(ॱ.ˎ());
        } catch (ApiNotExistException e) {
            throw new GeneralException(207135009);
        } catch (Throwable e2) {
            throw new GeneralException(207135001, e2);
        }
    }
}
